Component({
  properties: {
    stamp: {
      type: Number,
      value: new Date().getTime()
    },
    events: {
      type: Number,
      value: 0
    },
    active: {
      type: Boolean,
      value: false
    }
  },
  data: {
    days: "",
    date: new Date().getDate(),
  },
  lifetimes: {
    attached() {
      const date = new Date(parseInt(this.data.stamp));
      const daysMapping = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
      this.setData({
        days: daysMapping[date.getDay()],
        date: date.getDate()
      })
    }
  },
  methods: {}
});
